package com.eazykitchen.dao;

import com.eazykitchen.entity.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectDao {

    /**
     * 新增菜品
     * @param collect
     * @return
     */
    public int addFood(@Param("c")Collect collect);

    /**
     *
     * @param Id
     * @return
     */
    public int delFood(@Param("id")int Id);

    /**
     *
     * @param collect
     * @return
     */
    public int updateFood(@Param("collect")Collect collect);

    /**
     *
     * @param collect
     * @return
     */
    public List<Collect> getFoodList(@Param("c")Collect collect);

    /**
     *
     * @param id
     * @return
     */
    public Collect getFoodById(@Param("id")int id);
}
